package request

import (
	"Project/model/common/request"
	"Project/model/drugs"
)

// 新建药品登记记录
type DrugRecordRequest struct {
	Name       string              `json:"user_name"   binding:"required,lte=10"`
	Phone      string              `json:"phone"       binding:"required"`
	Card       string              `json:"card"        binding:"required,numStr"`
	LivingArea string              `json:"living_area" binding:"required"`
	Address    string              `json:"address"      binding:"required"`
	HighRisk   string              `json:"high_risk"    binding:"required"`
	ReasonUse  string              `json:"reason_use"   binding:"required"`
	DrugList   []drugs.DrugsMiddle `json:"drugs"        binding:"unique"` // 药品列表
}

// 查询记录请求，所需字段
type InquireDrugRecordRequest struct {
	DrugsShopId                  int64                   `json:"drugs_shop_id"` // 药店id
	request.ConditionAndPageInfo `json:"condition_info"` // 通用查询条件
}
